import layout from '@/layout'
export default {
  // 路由信息
  path: '/vehicle',
  component: layout, // 一级路由
  redirect: '/vehicle/register',
  meta: { title: '车辆管理', icon: 'el-icon-truck' },
  children: [
    {
      path: '/motorcycle',
      component: () => import('@/views/vehicle/motorcycle/motorcycle.vue'),
      name: 'motorcycle',
      meta: {
        // 路由元信息 存储数据的
        title: '车型管理' // 标题
      }
    },
    {
      path: '/Vehiclelist',
      component: () => import('@/views/vehicle/Vehiclelist/Vehiclelist.vue'),
      name: 'Vehiclelist',
      meta: {
        // 路由元信息 存储数据的
        title: '车辆列表' // 标题
      }
    },
    {
      path: '/register',
      component: () => import('@/views/vehicle/register/register.vue'),
      name: 'register',
      meta: {
        // 路由元信息 存储数据的
        title: '回车登记' // 标题
      }
    }
  ]
}
